#include "apue_error.h"
#include "openpt.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>

int printf( const char *fmt, ... )
{
	fprintf( stdout, "MY: " );
	va_list ap;
	va_start( ap, fmt );
	vfprintf( stdout, fmt, ap );
	va_end( ap );
	return 0;
}

int main( int argc, char *argv[] )
{
	//posix_openpt( O_WRONLY );
	printf( "aaaa%d\n", 30 );
	err_msg( "aaaaa,ddd" );
	return 0;
}
